package com.googlecode.auctionx.mercadolivre.xml;

import org.simpleframework.xml.Serializer;
import org.simpleframework.xml.core.Persister;

import com.googlecode.auctionx.mercadolivre.xml.elements.Response;

public class SimpleXMLParser {

	public Response getResponse(String xml) throws Exception {
		Serializer serializer = new Persister();
		Response response = (Response) serializer.read(Response.class, xml);
		return response;
	}

}